<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html  xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<title>xdcms acp :: <?php echo $title; ?></title>
	
	<link rel="stylesheet" href="<?php echo ROOT_URL;?>admin/skin/style.css" />
	
	<?php plugin::load('header_include', array($headers)); ?>
	
</head>

<body>
<div id="header">
	<h1>xdcms acp</h1>
</div>
<div id="wrapper">
	<div id="menuBar">
		<ul>
			<li><a href="<?php echo ROOT_URL;?>admin" >Home</a></li>
			<li><a href="<?php echo ROOT_URL . 'admin/' . URL_BASE . 'module';?>" >Module</a></li>
			<?php
				$query = new Query("SELECT * FROM `modules` WHERE `active` = 1 AND `menu` = 1 ORDER BY `id` DESC");
				
				if($query->num_rows() > 0)
				{
					$modules = module::recordSet($query, 'module');

					foreach ($modules as $module)
					{
						include(ROOT . 'modules/' . $module->location . '/menu.php');
						echo $menu;
					}
				}
			?>

		</ul>
		
	</div>

	<div id="content">
		<?php echo $content; ?>
	</div>
	&nbsp;
</div>

<div id="footer">
<p>&copy; 2008 xdcms &amp; Unplugged Designs</p>
</div>

</body>
</html>
